package com.ruoyi.official.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类对象 official_category
 *
 * @author yuanqiji
 * @date 2025-04-03
 */
public class OfficialCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 中文分类名称
     */
    @Excel(name = "中文分类名称")
    private String categoryNameZh;

    /**
     * 英文分类名称
     */
    @Excel(name = "英文分类名称")
    private String categoryNameEn;

    /**
     * 分类图片
     */
    @Excel(name = "分类图片")
    private String imageUrl;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sortNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCategoryNameZh() {
        return categoryNameZh;
    }

    public void setCategoryNameZh(String categoryNameZh) {
        this.categoryNameZh = categoryNameZh;
    }

    public String getCategoryNameEn() {
        return categoryNameEn;
    }

    public void setCategoryNameEn(String categoryNameEn) {
        this.categoryNameEn = categoryNameEn;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Long getSortNum() {
        return sortNum;
    }

    public void setSortNum(Long sortNum) {
        this.sortNum = sortNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryNameZh", getCategoryNameZh())
                .append("categoryNameEn", getCategoryNameEn())
                .append("imageUrl", getImageUrl())
                .append("sortNum", getSortNum())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
